<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="accueil.css">
<title>Accueil</title>
</head>
<body>
<center>
	<h1>Welcome 
	<% 	// question a poser
		String log = request.getParameter("login");
		if(log == null){
			Cookie[] cookies = request.getCookies();
			for(Cookie c : cookies){
				if("login".equals(c.getName())){
					log = c.getValue();
					break;
				}
			}
		}
		out.write(log);	
	%></h1>
	<table class="tab">
		<tr>
			<td>
				<form action="add.jsp">
					<input type="submit" value="add" />
				</form>
			</td>
			<td>
				<form action="remove.jsp">
					<input type="submit" value="remove" />
				</form>
			</td>
			<td>
				<form action="update.jsp">
					<input type="submit" value="update" />
				</form>
			</td>
			<td>
				<form action="search.jsp">
					<input type="submit" value="search" />
				</form>
			</td>
			<td>
				<form action="testTP2.jsp">
					<input type="submit" value="testhibernate" />
				</form>
			</td>
		</tr>
	</table>
	<br>
	<jsp:include page="table.jsp"></jsp:include>
</center>
</body>
</html>